package 抽象类;
//3
public class TestDemo {
    public static void drawMap(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Cycle());
        drawMap(new Flower());//“花”是抽象的;无法实例化
        drawMap(new Rect());
    }
}
